from django.db import models


class RSMGroup(models.Model):
    owner = models.CharField(max_length=200)
    groupName = models.CharField(max_length=200)
    
    members = models.ManyToManyField('my_friends.RSMUser')
    
    class Meta:
        unique_together = ("owner", "groupName")

    def __unicode__(self):
        return self.groupName.__str__()
